package org.example.springcloud.service.impl;

import org.example.springcloud.dao.DeptDao;
import org.example.springcloud.pojo.Dept;
import org.example.springcloud.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zfj
 * @date 2022/2/17 -11:59
 */
@Service
public class DeptServiceImpl implements DeptService {
	@Autowired
	DeptDao deptDao;
	@Override
	public boolean addDept(Dept dept) {
		return deptDao.addDept(dept);
	}

	@Override
	public Dept queryById(Long id) {
		return deptDao.queryById(id);
	}

	@Override
	public List<Dept> queryAll() {
		return deptDao.queryAll();
	}
}
